package com.songlanyun.modules.comment.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.songlanyun.modules.comment.entity.OrderGoodsComment;
import com.songlanyun.modules.comment.model.vo.OrderGoodsCommentVO;
import com.songlanyun.modules.goods.entity.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 订单商品评论
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-30 18:09:47
 */
@Mapper
public interface OrderGoodsCommentDao extends BaseMapper<OrderGoodsComment> {

    List<OrderGoodsCommentVO> getAvgByGoods();
    List<OrderGoodsCommentVO> getAvgByShop();

    IPage<OrderGoodsComment> queryCommentPage(IPage<OrderGoodsComment> page,@Param("params") Map<String, Object> params);
}
